/*************************************************************************  
 *   This file is part of UBBMPSREADER.
 *
 *   UBBMPSREADER is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   UBBMPSREADER is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with UBBMPSREADER.  If not, see <http://www.gnu.org/licenses/>. 
 *************************************************************************/

package cs.ubbcluj.ro.mps.states.interfaces;

import java.io.IOException;

import cs.ubbcluj.ro.mps.data.interfaces.Mps;
import cs.ubbcluj.ro.mps.reader.MpsInputStream;

/**
 * Represents a state of the finite state machine to parse mps files
 * 
 * @author avadas
 * @version 1.0
 */
public interface State {

    /**
     * Returns the next state of the finite state machine
     * 
     * @param input
     *            the inputstream to parse
     * @param mps
     *            the mps to fill
     * @return the next state of the finite state machine
     * @throws IOException
     *             see {@link IOException}
     */
    State nextState(MpsInputStream input, Mps mps) throws IOException;
}
